package com.nq.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nq.pojo.UserRecharge;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.nq.pojo.vo.UserRechargeVo;
import org.apache.ibatis.annotations.Param;

public interface UserRechargeMapper extends BaseMapper<UserRecharge> {
  int deleteByPrimaryKey(Integer paramInteger);
  
  int insert(UserRecharge paramUserRecharge);
  
  int insertSelective(UserRecharge paramUserRecharge);
  
  UserRecharge selectByPrimaryKey(Integer paramInteger);
  
  int updateByPrimaryKeySelective(UserRecharge paramUserRecharge);
  
  int updateByPrimaryKey(UserRecharge paramUserRecharge);
  
  int checkInMoney(@Param("status") int paramInt, @Param("userId") Integer paramInteger);
  
  UserRecharge findUserRechargeByOrderSn(String paramString);
  
  List findUserChargeList(@Param("uid") Integer paramInteger, @Param("payChannel") String paramString1, @Param("orderStatus") String paramString2, @Param("orderSn") String orderSn);
  
  List<UserRechargeVo> listByAdmin(@Param("accountType") String accountType,
                                   @Param("agentId") Integer agentId,
                                   @Param("orderSn") String orderSn, @Param("userId") Integer paramInteger2,
                                   @Param("userPhone") String userPhone,
                                   @Param("realName") String paramString,
                                   @Param("state") Integer paramInteger3,
                                   @Param("payChannel") Integer payChannel,
                                   @Param("begin_time") Date paramDate1, @Param("end_time") Date paramDate2,
                                   @Param("beginAmount") String beginAmount, @Param("endAmount") String endAmount);
  
  int deleteByUserId(@Param("userId") Integer paramInteger);
  
  List listByAgent(@Param("searchId") Integer paramInteger1, @Param("realName") String paramString1, @Param("payChannel") String paramString2, @Param("state") Integer paramInteger2);
  
  BigDecimal CountChargeSumAmt(Integer paramInteger);

  BigDecimal CountTotalRechargeAmountByTime(Integer paramInteger);

  Integer queryUserSuccessRecharge(@Param("userId") Integer userId);

}
